package cn.jobstart.search;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.jobstart.pubInter.BaseSearch;
import cn.jobstart.model.PersonRemark;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import lombok.Data;
/**
*   @author sunke
*   @Date 2023-09-22 22:03:53
*   @description PersonRemarkSearch      人才备注
*/


@Data
@ApiModel("人才备注PersonRemarkSearch")
public abstract class PersonRemarkSearch<Sub extends PersonRemarkSearch<Sub>> extends BaseSearch {
    @ApiModelProperty(value = "主键")
    private List idIn;
    @ApiModelProperty(value = "大于排序")
    private Integer sortNumGreater;
    @ApiModelProperty(value = "小于排序")
    private Integer sortNumLess;
    @ApiModelProperty(value = "是否显示 1:是:Y,0:否:N")
    private List showFlagIn;
    @ApiModelProperty(value = "是否删除 1:删除:Y,0:正常:N")
    private Integer delFlagEq=0;
    @ApiModelProperty(value = "版本")
    private Integer versionEq;
    @ApiModelProperty(value = "人才ID")
    private String personIdEq;
    @ApiModelProperty(value = "员工ID")
    private String adminIdEq;
    @ApiModelProperty(value = "员工姓名")
    private String adminTruenameLike;
    @ApiModelProperty(value = "备注内容")
    private String remarkLike;

    public PersonRemarkSearch() {
        setDelFlagEq(0);
    }



    /**
    * 返回子类Sub
    * @return
    */
    public abstract Sub getSubThis();

    @Override
    public String createTimeFiled() {
        return PersonRemark.CREATE_TIME;
    }
    @Override
    public String updateTimeFiled() {
        return PersonRemark.UPDATE_TIME;
    }
    @Override
    public String  setDefaultField() {
        return PersonRemark.CREATE_TIME;
    }
    @Override
    public String pkField() {
        return PersonRemark.ID;
    }

    @Override
    public String  toString() {
        return "PersonRemarkSearch{}"+super.toString();
    }
    public Sub setIdIn(List idIn){
        this.idIn = idIn;
        setInField(PersonRemark.ID, idIn);
        return getSubThis();
    }
    public Sub setSortNumGreater(Integer sortNumGreater){
        this.sortNumGreater = sortNumGreater;
        setGreaterField(PersonRemark.SORT_NUM, sortNumGreater);
        return getSubThis();
    }
    public Sub setSortNumLess(Integer sortNumLess){
        this.sortNumLess = sortNumLess;
        setLessField(PersonRemark.SORT_NUM, sortNumLess);
        return getSubThis();
    }
    public Sub setShowFlagIn(List showFlagIn){
        this.showFlagIn = showFlagIn;
        setInField(PersonRemark.SHOW_FLAG, showFlagIn);
        return getSubThis();
    }
    public Sub setDelFlagEq(Integer delFlagEq){
        this.delFlagEq = delFlagEq;
        setEqualField(PersonRemark.DEL_FLAG, delFlagEq);
        return getSubThis();
    }
    public Sub setVersionEq(Integer versionEq){
        this.versionEq = versionEq;
        setEqualField(PersonRemark.VERSION, versionEq);
        return getSubThis();
    }
    public Sub setPersonIdEq(String personIdEq){
        this.personIdEq = personIdEq;
        setEqualField(PersonRemark.PERSON_ID, personIdEq);
        return getSubThis();
    }
    public Sub setAdminIdEq(String adminIdEq){
        this.adminIdEq = adminIdEq;
        setEqualField(PersonRemark.ADMIN_ID, adminIdEq);
        return getSubThis();
    }
    public Sub setAdminTruenameLike(String adminTruenameLike){
        this.adminTruenameLike = adminTruenameLike;
        setLikeField(PersonRemark.ADMIN_TRUENAME, adminTruenameLike);
        return getSubThis();
    }
    public Sub setRemarkLike(String remarkLike){
        this.remarkLike = remarkLike;
        setLikeField(PersonRemark.REMARK, remarkLike);
        return getSubThis();
    }
}